package cn.com.w.dao.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
/**
 * <p>
 * 用户角色关联表
 * </p>
 *
 * @author wangJK
 * @since 2025-04-25
 */
@Getter
@Setter
@ToString
@TableName("sys_user_role")
@Builder
@AllArgsConstructor
@NoArgsConstructor
//@ApiModel(value = "SysUserRole对象", description = "用户角色关联表")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    //@ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    //@ApiModelProperty("用户id")
    private Long userId;

    /**
     * 角色id
     */
    @TableField("role_id")
    //@ApiModelProperty("角色id")
    private Long roleId;

    /**
     * 是否有效
     */
    @TableField("enabled")
    //@ApiModelProperty("是否有效")
    private Boolean enabled;

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String ROLE_ID = "role_id";

    public static final String ENABLED = "enabled";
}
